<% products.each do |p| %>
    <% if user_signed_in? %>
        <%= render :partial => 'listing_private_view', :locals => { :product => p } %>
    <% else %>
        <%= render :partial => 'listing_public_view', :locals => { :product => p } %>
    <% end %>
<% end %>